Tab List
fun TabList(tabs: List<TabItem>, selectedTab: TabItem, onTabSelected: (TabItem) -> Unit, modifier: Modifier = Modifier, variant: TabVariant = TabVariant.Line)
Tabs
Tabs are used to organize related content. They allow the user to navigate between groups of information that appear within the same context.
(From Tabs documentation)
Parameters
tabs
The items to display as tabs.
selected Tab
The currently selected tab, usually the first one.
on Tab Selected
Callback invoked when a tab is selected. The selected TabItem is passed as a parameter, and the callback should be used to update a remembered state with the new value.
modifier
The modifier to apply to the composable.
variant
The variant of the tab list.